<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Netty：高性能网络编程框架</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            position: relative;
            overflow: hidden;
        }
        
        .hero-gradient::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            bottom: -50%;
            left: -50%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: drift 20s linear infinite;
        }
        
        @keyframes drift {
            from { transform: translate(0, 0); }
            to { transform: translate(50px, 50px); }
        }
        
        .feature-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }
        
        .feature-icon {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
            font-size: 24px;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
        }
        
        .feature-card:hover .feature-icon {
            transform: scale(1.1);
        }
        
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .section-title {
            position: relative;
            display: inline-block;
            margin-bottom: 3rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }
        
        .mermaid {
            background: rgba(255, 255, 255, 0.9);
            padding: 2rem;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 1;
            font-weight: 700;
            margin-right: 0.5rem;
            margin-top: -0.1rem;
            color: #667eea;
            font-family: 'Noto Serif SC', serif;
        }
        
        .content-section {
            background: white;
            border-radius: 24px;
            padding: 3rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        }
        
        .highlight-box {
            background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
            border-left: 4px solid #667eea;
            padding: 1.5rem;
            border-radius: 8px;
            margin: 2rem 0;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <div class="hero-gradient text-white py-20 relative">
        <div class="container mx-auto px-6 relative z-10">
            <div class="max-w-4xl mx-auto text-center">
                <h1 class="text-5xl md:text-6xl font-bold mb-6 animate-pulse">
                    <i class="fas fa-network-wired mr-4"></i>Netty
                </h1>
                <p class="text-2xl md:text-3xl mb-8 font-light">高性能网络编程框架的终极解决方案</p>
                <p class="text-lg md:text-xl opacity-90 leading-relaxed">
                    在现代网络编程的复杂世界中，Netty 如同一位技艺精湛的建筑师，为开发者搭建起高效、稳定、优雅的网络通信桥梁。
                </p>
            </div>
        </div>
    </div>

    <!-- Main Content -->
    <div class="container mx-auto px-6 py-12">
        <!-- Introduction Section -->
        <div class="content-section">
            <h2 class="section-title text-3xl font-bold text-gray-800">框架概述</h2>
            <p class="text-lg leading-relaxed text-gray-700">
                <span class="drop-cap">N</span>etty 在网络编程中解决了多个关键问题，使其成为一个非常流行的网络通信框架。通过提供高效的异步 I/O 处理、灵活的编解码机制、优雅的异常处理和高效的线程模型等，Netty 解决了许多网络编程中的关键问题，使得开发网络应用变得更加高效和简便。
            </p>
        </div>

        <!-- Architecture Visualization -->
        <div class="mb-12">
            <h2 class="section-title text-3xl font-bold text-gray-800 text-center mb-8">架构体系图</h2>
            <div class="mermaid">
                graph TB
                    A[Netty 核心架构] --> B[异步事件驱动]
                    A --> C[高性能 I/O]
                    A --> D[灵活的编解码]
                    A --> E[优雅的异常处理]
                    
                    B --> B1[EventLoop]
                    B --> B2[Channel]
                    B --> B3[ChannelHandler]
                    
                    C --> C1[NIO]
                    C --> C2[零拷贝]
                    C --> C3[内存池]
                    
                    D --> D1[编码器]
                    D --> D2[解码器]
                    D --> D3[协议支持]
                    
                    E --> E1[统一处理]
                    E --> E2[链式传播]
                    
                    style A fill:#667eea,stroke:#fff,stroke-width:3px,color:#fff
                    style B fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                    style C fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                    style D fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                    style E fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
            </div>
        </div>

        <!-- Features Grid -->
        <div class="mb-12">
            <h2 class="section-title text-3xl font-bold text-gray-800 text-center mb-8">核心特性</h2>
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
                <!-- Feature 1 -->
                <div class="feature-card p-6 rounded-2xl">
                    <div class="feature-icon bg-purple-100 text-purple-600">
                        <i class="fas fa-bolt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">异步和高性能 I/O</h3>
                    <p class="text-gray-600 leading-relaxed">
                        提供高效的异步 I/O 处理，利用非阻塞操作提高系统吞吐量，轻松处理大量并发连接。
                    </p>
                </div>

                <!-- Feature 2 -->
                <div class="feature-card p-6 rounded-2xl">
                    <div class="feature-icon bg-blue-100 text-blue-600">
                        <i class="fas fa-code"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">简化网络编程</h3>
                    <p class="text-gray-600 leading-relaxed">
                        高层次抽象和丰富功能，让开发者能够简单高效地实现复杂的网络协议和服务。
                    </p>
                </div>

                <!-- Feature 3 -->
                <div class="feature-card p-6 rounded-2xl">
                    <div class="feature-icon bg-green-100 text-green-600">
                        <i class="fas fa-exchange-alt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">灵活的编解码机制</h3>
                    <p class="text-gray-600 leading-relaxed">
                        支持自定义编解码器，轻松处理各种数据格式和协议，解决数据传输格式化问题。
                    </p>
                </div>

                <!-- Feature 4 -->
                <div class="feature-card p-6 rounded-2xl">
                    <div class="feature-icon bg-red-100 text-red-600">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">优雅的异常处理</h3>
                    <p class="text-gray-600 leading-relaxed">
                        集中化的异常处理机制，在统一位置处理所有异常，简化错误处理和恢复操作。
                    </p>
                </div>

                <!-- Feature 5 -->
                <div class="feature-card p-6 rounded-2xl">
                    <div class="feature-icon bg-indigo-100 text-indigo-600">
                        <i class="fas fa-microchip"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">高效的线程模型</h3>
                    <p class="text-gray-600 leading-relaxed">
                        采用 Reactor 线程模型，分离 I/O 操作和业务逻辑，减少上下文切换开销。
                    </p>
                </div>

                <!-- Feature 6 -->
                <div class="feature-card p-6 rounded-2xl">
                    <div class="feature-icon bg-yellow-100 text-yellow-600">
                        <i class="fas fa-globe"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">丰富的协议支持</h3>
                    <p class="text-gray-600 leading-relaxed">
                        内置 HTTP、WebSocket、FTP 等多种网络协议支持，快速构建多协议网络应用。
                    </p>
                </div>

                <!-- Feature 7 -->
                <div class="feature-card p-6 rounded-2xl">
                    <div class="feature-icon bg-pink-100 text-pink-600">
                        <i class="fas fa-sync"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">动态事件驱动机制</h3>
                    <p class="text-gray-600 leading-relaxed">
                        事件驱动编程模型，在特定事件发生时执行回调，使事件处理更加灵活高效。
                    </p>
                </div>

                <!-- Feature 8 -->
                <div class="feature-card p-6 rounded-2xl">
                    <div class="feature-icon bg-gray-100 text-gray-600">
                        <i class="fas fa-memory"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">优良的资源管理</h3>
                    <p class="text-gray-600 leading-relaxed">
                        高效内存管理和资源回收，通过池化技术减少内存碎片，提高系统整体性能。
                    </p>
                </div>
            </div>
        </div>

        <!-- Summary Section -->
        <div class="content-section bg-gradient-to-r from-purple-50 to-blue-50">
            <h2 class="text-3xl font-bold mb-6 gradient-text">为什么选择 Netty？</h2>
            <div class="highlight-box">
                <p class="text-lg leading-relaxed text-gray-700">
                    <i class="fas fa-quote-left text-purple-400 mr-2"></i>
                    在当今互联网时代，高性能、高并发的网络通信是构建现代应用的基石。Netty 不仅仅是一个网络框架，它是一个经过实战检验的解决方案，被广泛应用于各种大型分布式系统中。从即时通讯到游戏服务器，从 RPC 框架到消息中间件，Netty 以其卓越的性能和优雅的设计，成为了 Java 网络编程领域的事实标准。
                    <i class="fas fa-quote-right text-purple-